<?php
ob_end_clean();
header("Pragmaes: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false);
header("Content-Type: text/excel; charset=UTF-8");
header("content-type:application/csv;charset=UTF-8");
header("Content-Transfer-Encoding: Binary");
header("Content-Disposition: attachment;filename=VLC1502_Hours_of_rest.xls");
$data = str_replace('<th class="head0">', "<th style='outline: thick solid #000;height:30px'> ", $_POST['tableData']);
$data2 = str_replace('<th class="head1">', "<th style='border-collapse:collapse;;height:30px'> ", $data);
$data3 = str_replace("<td>", "<td style='border-collapse:collapse;;height:30px'> ", $data2);
echo '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />';
echo strip_tags($data3,'<table><th><tr><td>');
?>